package com.zzt.mylotterykill.enums;

import lombok.Getter;

@Getter
public enum OptionEnum {
    //正码同号1
    ZMSAME1("zmsame1", "正码同号1"),
    //正码同号2
    ZMSAME2("zmsame2", "正码同号2"),
    //正码同号3
    ZMSAME3("zmsame3", "正码同号3"),
    //正码同号4
    ZMSAME4("zmsame4", "正码同号4"),
    //正码同号5
    ZMSAME5("zmsame5", "正码同号5"),
    //正码同号6
    ZMSAME6("zmsame6", "正码同号6"),
    //特码同号
    TMSAME("tmsame", "特码同号"),
    //正码大小单双1
    ZMDXDS1("zmdxds1", "正码大小单双1"),
    //正码大小单双2
    ZMDXDS2("zmdxds2", "正码大小单双2"),
    //正码大小单双3
    ZMDXDS3("zmdxds3", "正码大小单双3"),
    //正码大小单双4
    ZMDXDS4("zmdxds4", "正码大小单双4"),
    //正码大小单双5
    ZMDXDS5("zmdxds5", "正码大小单双5"),
    //正码大小单双6
    ZMDXDS6("zmdxds6", "正码大小单双6"),
    //特码大小单双
    TMDXDS("tmdxds", "特码大小单双"),
    ;
    OptionEnum(String name, String desc){
        this.name = name;
        this.desc = desc;
    }
    private String name;
    private String desc;

    public static OptionEnum getByName(String name) {
        for (OptionEnum optionEnum : values()) {
            if (optionEnum.getName().equals(name)) {
                return optionEnum;
            }
        }
        return null;
    }
}
